package com.xuhuan.demo.properties.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @Author huan.xu
 * @Date 2022/11/6 13:46
 * @Description 测试配置
 */
@Data
//@PropertySource(value = {"classpath:demo.properties"})
@ConfigurationProperties(prefix = "demo", ignoreUnknownFields = false)
@Component
public class DemoConfig {

    private String name;
    private Integer age;
}
